const UI = {};
const FormItem = {};

const Element = import.meta.glob("./*/Config.js", { eager: true });

for (const key in Element) {
    const element = Element[key];
    if (element.default.Type == "UI") {
        UI[element.default.Id] = element.default;
    } else {
        FormItem[element.default.Id] = element.default;
    }
}

export default {
    UI,
    FormItem,
};
